package net.minecraft.src;

public class TileRecTransStamp extends TileReceiverTransmitterCommon
{

    public TileRecTransStamp()
    {
        lineBeingEdited = -1;
        isEditable = true;
    }

    
    public void setTileString(String[] tileString)
    {
    	stampKey = tileString;
    }
    public void writeToNBT(NBTTagCompound nbttagcompound)
    {
        super.writeToNBT(nbttagcompound);
        nbttagcompound.setString("Text1", stampKey[0]);
        nbttagcompound.setString("Text2", stampKey[1]);
        nbttagcompound.setString("Text3", stampKey[2]);
        nbttagcompound.setString("Text4", stampKey[3]);
    }

    public void readFromNBT(NBTTagCompound nbttagcompound)
    {
    	super.readFromNBT(nbttagcompound);
        BlockReceiver.addToMap(this.xCoord,this.yCoord,this.zCoord,stampKey[0]+stampKey[1]+stampKey[2]+stampKey[3]);
       
    }
    
    
    public void loadFromPacket( Packet230ModLoader packet )
    {
        super.loadFromPacket(packet);
        BlockReceiver.addToMap(this.xCoord,this.yCoord,this.zCoord,stampKey[0]+stampKey[1]+stampKey[2]+stampKey[3]);
    }
    
 
    
}
